package dashboard.statrpt.field;

//Report Summary - Cache Sizes
public enum RptSumCacheSizes implements RptField {

	BufferCacheBegin("Buffer Cache:", 2, String.class, "Buffer Cache (Begin):"),
	BufferCacheEnd("Buffer Cache:", 3, String.class, "Buffer Cache (End):"),
	SharedPoolSizeBegin("Shared Pool Size:", 2, String.class, "Shared Pool Size (Begin):"),
	SharedPoolSizeEnd("Shared Pool Size:", 3, String.class, "Shared Pool Size (End):"),
	LogBuffer("Log Buffer:", 5, String.class, "Log Buffer:");
	
	private String label;
	private String name;
	private int colIndex;
	private Class type;
	
	RptSumCacheSizes(String name, int colIndex, Class type, String label){
		this.name = name;
		this.colIndex = colIndex;
		this.type = type;
		this.label = label;
	}

	@Override
	public String getFieldName() {
		return name;
	}

	@Override
	public int getColIndex() {
		return colIndex;
	}

	@Override
	public Class getFieldType() {
		return type;
	}
	
	public String getLabel(){
		return label;
	}
	
	public String getKey(){
		return name();
	}
}
